package org.csu.demopetstore.Persistence;

import org.apache.ibatis.annotations.Param;
import org.csu.demopetstore.entity.Account;
import org.springframework.stereotype.Repository;

@Repository
public interface AccountMapper {

    Account getAccountByUsernameAndPassword(@Param("username")String username,@Param("password")String password);

    Account getAccountInformation(@Param("username")String username);

    void updateAccount(Account account);
    void updateProfile(Account account);
    void updateSignon(Account account);

    void insertAccount(Account account);
    void insertProfile(Account account);
    void insertSignon(Account account);
}
